flask: check permissions first thing in flask_security_set_bool()
authorJan Beulich <jbeulich@suse.com>
Tue, 11 Feb 2014 10:14:10 +0000 (11:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 11 Feb 2014 10:14:10 +0000 (11:14 +0100)
commitebe867052e0f782139147015c4e91b37aa5e68f1
tree62af201a46e70b0a703f0a068ad997d20a14ce13
parent31f3620be0e3158c205a3669135f9c4bfa40b1c7
flask: check permissions first thing in flask_security_set_bool()

Nothing else should be done if the caller isn't permitted to set
boolean values.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/flask_op.c